org 100h

mov cx, 128
call outCx
not cl
call outCx

int 20h

outCx proc
cmp cx, 0
je isZero
lea dx, notzero
mov ah, 09h
int 21h
lea dx, newline
mov ah, 09h
int 21h
push cx
c:
	call output
loop c
lea dx, newline
mov ah, 09h
int 21h
pop cx
ret
isZero:
lea dx, zero
mov ah, 09h
int 21h
lea dx, newline
mov ah, 09h
int 21h
ret
zero db 'zero$'
notzero db 'not zero$'
outCx endp

output proc
lea dx, str
mov ah, 09h
int 21h
ret
str db 'I$'
output endp

newline db 13
db 10
db '$'


